package bookstore_mall.common;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class PageVO<T> implements Serializable {

    private static final long serialVersionUID = 8545996863226528798L;
    protected List<T> records;
    protected long total;

    public PageVO(long total) {
        this.total = total;
    }
    public PageVO() {

    }
    public PageVO(long total, List<T> records) {
        this.total = total;
        this.records=records;
    }
}
